package com.abocode.aichat.server.context.worker;

import com.abocode.aichat.server.context.ServerRuntimeContextRegistry;
import com.abocode.aichat.server.modules.Module;
import com.abocode.aichat.data.MessageStanza;

/**
 * @author guanxf
 */
public interface Worker<K> extends ServerRuntimeContextRegistry {

     void addModule(Module moduleRegistry);

     void execute(K k, MessageStanza stanza);
}
